package com.atguigu.crud.service;

import com.alibaba.fastjson.JSON;
import com.atguigu.crud.bean.Wuser;
import com.atguigu.crud.bean.Wxuser;
import com.atguigu.crud.bean.WxuserExample;
import com.atguigu.crud.bean.WxuserExample.Criteria;
import com.atguigu.crud.dao.WuserMapper;
import com.atguigu.crud.dao.WxuserMapper;
import com.atguigu.weixin.kit.WeixinKit;
import com.atguigu.weixin.model.WeixinFianlValue;
import com.atguigu.weixin.model.WeixinUser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
@Service("wuserService")
public class WuserService {
	@Autowired
	private WuserMapper wuserMapper;//微信用户业务接口
	
    //查询所有用户
	public List<Wuser> list() {

		return wuserMapper.selectByExample(null);
	}
    
}
